Changed to string formats
Changed to throw runtime exception