Escape compared string value