have a small problem here.. when i tried to add more conditions to my IF it doesnt give the expected output..
if (str.startsWith("HEADER") || str.startsWith("TITLE") || (str.startsWith("ATOM") && !str.endsWith("H")))
it does the correct thing for HEADER and TITLE but as for the last one ATOM part it gives me everything, including those that ends with H..did i do anything wrong?