Add escape_string to deal with backslash and add unittest