Also, this method doesn't quite seem to work for more complex numbers -- I tried `MCMXXVII`, which should be `1927`, but encountered an ArgumentError on line 22.