Converted String comparisons to .equals from ==s.