Considering namespace when checking key length