Fix double space inserting a period

This fixes issue #4