private static String preprocessExpression(String expression) {
    String preprocessed = expression.replaceAll("[\\s\n]+", " ");
    return preprocessed.length() > MAX_EXPRESSION_LENGTH ? expression : preprocessed;
  }
private static String preprocessExpression(String expression)