Fix trailing whitespace in function definition