add possibility to check length of a secure string