String#length is method, fixed this bug