use STRLEN where appropriate