Switched from std::tolower() etc. to fold(). Thanks to Jarryd Beck for the spot.