When you CONCAT_WS(\' \',field1,field2,field3) in MySQL and if one of the fields is empty, not null, you get multiple separators.
CONCAT_WS(\' \',field1,field2,field3)
An example can be:
Do it like this:
CONCAT_WS(' ', NULLIF(field1, ''), NULLIF(field2, ''), NULLIF(field3, ''));
CONCAT_WS will skip any null values, and by using NULLIF any empty ones too.
CONCAT_WS
NULLIF
Note: You can't regex replace. MySQL does not support it.