Change getContentAsString function in generalObject