strip blank space and replace '&nbsp'