private void addVariable(final String name, final String expression, final boolean highPrio) {
        if (StringUtils.isBlank(name)) {
            return;
        }
        final String varName = name.trim();
        final String varExpression = expression == null ? "" : expression.trim();
        final boolean varNotSet = StringUtils.isBlank(variables.get(varName));
        if (varNotSet || (highPrio && !StringUtils.isBlank(varExpression))) {
            variables.put(varName, varExpression);
        }
    }
Detect waypoint types in the personal note text. Tries to find various ways that
the waypoints name or id is written in given text.
main/src/main/java/cgeo/geocaching/models/CacheArtefactParser.java