def spacesCount(text):
            return len(text) - len(text.rstrip(' '))
def getText(self, callingWindow, itmContext, mainItem):
        return "Set {} as Damage Pattern".format(itmContext if itmContext is not None else "Item")