@ferventcoder alternatively, you could do `domain.gsub(/\.$/, '') if domain` unless returning nil has different syntax than returning empty string?