Trim the callback handler in the route function

By trimmer the callback variable in the route function we prevent the
system for giving a 404 page on trailing whitespaces. This might happen
by accident in .ini files.