add string method for CryptoMethod