strip whitespace from class variable