Only remove the trailing ^M
Update doc