to try hard to do sth well
take trouble over / with sth
They take a lot of trouble to find the right person for the right job.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition