fix bug : not working for input like  aaa or aaaaa
	modified:   ch02/ex2_4_1a.cpp