How to convert a string to lower or upper case in Ruby
Ruby has a few methods for changing the case of strings. To convert to lowercase, use downcase: Similarly, upcase capitalizes every letter and capitalize capitalizes the first letter of the string but lowercases the rest: If you want to modify a string in place, you can add an exclamation point to any of those methods: … Read more