Moved method to StringConverter class