bug fixes with whitespaces in sentences