Simplify str_to_real.