removed unnecessary slashes, using str_replace instead