Add optional string argument to injected function