trim content in homeview