trim trailing spaces added