I accidentially typed in \s instead of " ",
while(cname.charAt(cname.length-1) == "\s")
Aren't special characters resolved in all string literals?
Also, what is a proper regular expression to cut off all tabs and spaces from EOL?
The my /(.*)[\s\t]/
selector just won't work! So I had to fallback to while(if.. substr)
.