in reply to Re: removing the white spaces
in thread removing the white spaces

If you view the OP's HTML source, you'll see he actually asked:

i should get output as "The   perl"

and not

i should get output as "The perl"

Your solution doesn't answer his question (although that's not your fault).