* [Core] Add validation of maximum string lengths (#1718).