Set replacement flags same as s-replace

This is related to #62