made optargs an option
Updated for new string syntax