Changed constructor with char pointer to call setString method