added construct to take a String