added minimal string -> number conversion correctness check