string trim ( string str [, string trim_chars] ) strips spaces, new lines, and tabs
<? $a = trim(" testing "); $b = trim(" testing ", " teng"); ?>