Removing lowercase duplicate