Yet Another KMP Problem