Removed containsOnlyChars and replaced with more robust regexes - fixes some cases where false positives were returned. Added tests to catch these.