Works, however logged indexes not represented as spaces in new string
Implemented emulation of indexes in result string by using offset within find loop