Case-insensitively compare source codes [PD-278]

All tests pass. Feel free to ask for clarification - I had trouble reading that and I'm the one that wrote it.