Extracting resources to strings in storage commands