create package util, create class TextResolver.java