Wrap up to the first space character when inserting link before a non-space character