escape quotes and double quotes when checking texts