Update Main.java

Added a simple utility method for text normalization to make handling the user input for the search terms/document parsing easier.

The method is called normalize: see the method comment for more details.