Improves the upcase_first_letter() function