dotsToBrackets

Replaces all dots in the string with {}