added ftTrim function