stripped out last bit of string replacement when forming request