fix to deal with trailing spaces