How to merge two phrases into one in bigrams

Can you provide your str_replace_all call and an example dataset that reproduces the error? You can use dput() to copy the whole dataset, as described here.