use escape instead of String#escape
removed trailing whitespaces