Avoid adding methods to String prototype

To avoid polluting the String prototype, I've refactored the code a bit.
Also I've created a test for the determinePhoneticRegularity method, I used `低` there becasue it has all five "phonetic regularities".