Add option 'returnFormat' to get formatted string