make sure to only replace an actual prefix