fix small bug: string-length output is always true