string constructor

added a new constructor that takes a string argument. should be useful
for testing