[ruby] Ruby: How to get the first character of a string