instead of calling str_replace multiple times, use replace array