Bug fix for older ruby versions. Symbol was not automatically converted to a string in regex#match.