This checks for whitespace, not specifically a space, but I think that's okay.