re.match should return a match object no matter what, and .group() should return strings, empty string if non were matched.