Remove extra period from error message