Auto clean trailing spaces