Takes a string, a object hash and replaces every matching placeholder with the value from the object hash