turn body and header array into strings