add "createFromString" method