Open to debate nit: enclose '.' + suffix in a paren, making it:
(suffix ? ('.' + suffix) : '')

While the precedence is clear to the parser, I tend to enjoy more explicit delineation.