You overwrite $resultString in every loop iteration.
At the end of the loop $resultString will be result of only last str_replace call.