remove escape sequence of category