Fixing Restler, trimming of the trailing spaces