Different method for string replacement in binary