class WildcardHelper {

    public boolean matches(String string, String expression)
    {
        if (expression.startsWith(WILDCARD_TOKEN))
        {
            return string.endsWith(expression.substring(WILDCARD_TOKEN.length()));
        }
        return Objects.equals(expression, string);
    }

}