extract convertString method