fix word splitting for string match. Thanks emily for pointing it out