regex to move string to the end of a line