Replaced equals with equalsIgnoreCase method