You are relying in a format you don't have specification for. If any of the names contain this pattern, this would not work. Again, passing the model object directly would be safer and simpler.