inverse expand variables by length of value