test for string length of escape character within single quotes