Adds details format helper and tests

Adds details formatter to handle formatting of address and phone number.