look for a period at the end of a string or followed by a whitespace