Adding a nice formatting function for widgets, and a way to conveniently free() the memory of created strings.