converting between standard expanded and written forms to