fix constructor to string