s/\S\K +(?=\S)//g [download]
In reply to Re: Removing the space in a string by Anonymous Monk in thread Removing the space in a string by prashanthiyer