It would be safer to just always attempt to perform the gsub. Let's just always perform the gsub and then remove the redundant `#to_s` call on destination on line 48.