Remove extra spaces and add a space after `detached_symbol`