private ArrayList<String> reverseResults(ArrayList<String> results) {

    ArrayList<String> results2 = new ArrayList<String>();
    for (String result : results) {

      String[] strs = result.split(" ");
      Stack<String> stack = new Stack<String>();
      for (String s : strs) {
        stack.push(s);
      }
      StringBuilder sb = new StringBuilder();
      while (!stack.isEmpty()) {
        sb.append(stack.pop()).append(" ");
      }
      results2.add(sb.toString().trim());
    }
    return results2;
  }