void tf_modify_string_in_header
This routine replaces the value for a key line (specified by key_name)