Auto close brackets and parenthesis in textfields