Using regexes to split up input parameters
Flattening permutation strings
Permutation strings correctly formatted for multiplication