Split string by space and comma.