cleaning up title casing and trailing spaces in data