Updated LCS.java to include user input strings