I didn't like either how verbose was my solution. I tried using `isspace` but that caught false positives.

strchr is the way to go, thanks.