get parameter value by name from location string