Can you add parenthesis around the second condition & use Tools::strlen() instead of strlen() please ?