Exchange <n> and <m> for searching and repeating