Cleaning command parsing