'Remove whitespace and {} at the beginning or end of value.'

def process_val(self, val):

    val = val.strip()
    if (val and (val[0] == '{') and (val[(-1)] == '}')):
        val = val[1:(-1)]
    return val
