Building strings from a hash