refactor: check the string length before using String#codePointAt(0)
refactor: check the string length before using String#codePointAt(0)

aterai/java-swing-tips,aterai/java-swing-tips,aterai/java-swing-tips,aterai/java-swing-tips