Ups, sorry, my bad! I didn't saw the difference in the line, you are obviously right!

I think that you can say that on the general case m is the length shortest string,