copy functions from string Label to Label class (for test)