I use a parser called jsoup to parse html amd store it in a mysql database. The parser reads the files with an input stream. The problam is that some class en id atributes are given with class="". The parser cant find those atributes and returns a blank string. I tried to replace the " with \" using this function: http://www.fobit.com/index.php?article=Java%3A%20str_replace but here comes the problem. I cant give the search argument because """ gives a error. Using "\"" as argument gives no error but i t doesnt replace the "