rotateString() method moved to StringUtils from PrefixTableCalculator