convert to string before calling #length