re add mandatory str length checking