The code provided is supposed replace all the dots . in the specified String str with dashes -
But it's not working properly.
Fix the bug so we can all go home early.
String str will never be null.
def replaceDots(str)
str.sub(/./, '-')
enddef replaceDots(str)
str.gsub('.', '-')
enddef replaceDots(str)
str.tr('.', '-')
end