fix bug in erase space after split sentence