Added boundary checking before substr in embedded subfields functions