Add function for formatting gold strings

Allows for both text and iconfied strings