advice on treating a lingering hamstring injury

I strained my upper left hamstring in late August and still feel it doing certain movements from time to time. anybody have advice on how to treat this?