Between these two you should sort the problem out. If not then it is time to look for things the string may be vibrating against (i.e. a bit of pickup, a broken nut, check the neck isn't warped, a troublesome fret that needs replacing).
I wrote a lesson on guitar set up that may be a good starting point, it is in the studio section.
Hope this helps some
My instructors page and www.studiotrax.net for all things recording.
my toons Brought to you by Dr BadGAS
my toons Brought to you by Dr BadGAS