Asking for best practice for doing the following, having this string in C#:
string sentence = "I was watching TV last night while she was reading a book and you were playing video games";
I'm trying to get it automatically replaced by something like:
"you were watching TV last night while she was reading a book and I was playing video games"
Problem here is I can't use
sentence.Replace("I was", "you were").Replace("you were", "I was")
because final sentence would look bad: "I was watching tv while she was reading a book and I was playing video games".
It might look simple but it is not as simple as it seems, can I get some advice please?