Why partial search of the characters inside the brackets not working ?