Corrected regex for handling whitespace after dot.