These Liquid filters are documented by Shopify as such:
remove_first
replace_first
However, in Treepl they are implemented as:
removefirst
replacefirst
Not sure if there is a reason for this discrepancy, but it would be good if they could be the same as the Shopify version to avoid confusion.