added trailing slash argument to toString(bool)