Added hasUnwantedDelimiters function