Just a guess, but did you try entering the ASCII code for the space character...?

eg. K = replace (H, chr(32),"")