fixed replacespace