KMP:backtrace one space