Find length of string in Ruby Use .length to find length of string. "hi".length # 2 "hello".length # 5 "Hello World!".length # 12