Added remove end space to capwords