Fix replacement so that it works when a newline falls between 'the' and 'cloud'