Various corrections to tool syntax. Prevent empty text params or check before using. Always quote text params in command.