Fix random URL list and trim function args