Updated to remove dependency on JDK 7 method Character.isAlphabetic()