Simple Program Using String Functions In Javascript