Though it is correct to have ln|x|, for a function for example ln(x^2) absolutes are not necessary. Though I think in the HSC they will let it go. It depends on your teacher.
I am sure that we have a thread on that. In the HSC it does not matter, but in Uni it does.