fix bug when space in word