added the case to handle single escaped characters