Refactored numeralConversion Function

Passes all tests