Improve algorithm of 'to_i' method