avoid unintentional global variables
trim class attribute whitespace