Fixed a bug where functions with commas were not string substituted to have vector indices