strip extra whitespace from plays