fixed the string constructor