JString::increment

Increments a trailing number in a string.

Used to easily create distinct labels when copying objects. The method has the following styles: default: "Label" becomes "Label (2)" dash: "Label" becomes "Label-2"