Corrected buffer to String