Added commands to cmdtostr function