Hi, I see the ff expression. STRING=STRING.replace(/^[\s]+/g,""); STRING=STRING.replace(/[\s]+$/g,""); I know that these are expressions to trim the white spaces but I want to know what is the meaning of each characters inside the replace function. Thanks in Advance. Thope