added \r to split word and sentence regex