ECMS-6471 Wrong warning message displays with special characters

Reason: We don't exclude '[', ']' in valid characters of InputString component.
Solution: Exclude '[', ']' from valid characters of StringInput.