How to Correct and Avoid Transposition Errors