updated string using format as suggested @pelson