add stdlib for function validate_string