private static String processFoundText(final String text) {
        final String trimmed = text.replaceAll("\\s", " ").trim();
        return trimmed.replaceAll(" x ", " * ");
    }
Holds implementations for functions in Formula
main/src/main/java/cgeo/geocaching/utils/formulas/FormulaUtils.java