You added trailing whitespace to the line, that's the issue. The code is fine.