Where is the method: lenght() defined? The compiler can not find it in the code.
What value do you want to use to control the for loop?

@maz3r Did you test the code you posted?