fix(directive): trim key in order to handle complex ones that would need indentation