Added function "ends_with_ci" to utils (ends with case insensitive), and
using this function throughout the code.