check valid expression with base64 chars