name expansion is tool to expand string between '[]' and '{}'