Prevent whitespace-only preset names

This *could* cause parsing weirdness with BeautifulSoup, and would be
indicative of user error anyway, so we can strip the name before
checking it.