upd: Gives text. (Top topfase) We must find the word and replace it. Let it be necessary to replace "Top" with "bottom". Result -> Bottom topface
Looking for a substring, and then watching what stands next to it is, in my opinion, stupid. Searching with a IndexOf view ("word") is also not the case Who knows what separators will fall.