Those replacements were trivially equivalent. For the other ones, an examination of the context is necessary.