Function parseMnemonic

Parse a string to Mnemonic.