I want to read a string and remove all the whitespace before a word. How do I refer to tabs and newline characters etc. Can anyone give me a full list of what I should be checking for? while(mystr.length>0 && mystr.charAt(0)==" ") mystr= mystr.substr(1); Peace Lau