i tried but getbuffer() only gives me the first character of the string not the whole string