title: Input won't trim
body: <p>Brand new to this but I'm not sure what I am doing wrong as the output will not trim.</p>
  
  <pre><code>package cs520.hw3.part1;
  
  import javax.swing.JOptionPane;
  
  public class StringTest {
  
      public static void main(String[] args) {
  
          String input = JOptionPane.showInputDialog("Enter data using the format Name, Age, City");
          //String delimiter = ",";
          //String[] tokens = input.split(delimiter);
          System.out.println(input.trim());
      }
  }
  </code></pre>