Added error to string function and fixed debug warnings