Update the format of resourceInput