Remove spaces at the end