Added utility to clean trailing whitespace in data