Fixed trailing whitespace in controller