Andy Murray says he knew he would have to play well to beat Robert Kendrick in the first round at Wimbledon after coming through a tough match against the American.