Pattern-match 'replace_token' function
Streams API Protected
Token in headers now follow standard convetions
Optimization: To not update when both tokens are equal