strip whitespace from code