You can implement your own function to do that, and use a boolean to check if the part of string is in single quotes.