fix for trailing spaces