Implementing some of java.lang.Character methods