What is the problem? What is the expected output and what are you getting with your formula? can you post a few rows of data in a spreadsheet? There may be other characters than spaces involved.

cheers