setDisplayFormat now functioning but needs input validation