Ruby Convert String Array Into Integer Rules For All Operations