Implement isSingle, size, etc.
Extract expression trees inside a command string