added validate and formatting class for strings