fixed killwhitespace and now auto removes trailing spaces