added property and array lookups, and empty trimming for command parameters.