Replace '\r\n' in mechanism