Building the final string for the attachment fiel