String Operations Using Javascript