how do you remove the smell of dog pee from a bed spread?

i have a boston terrier whos a year and 5 months now ... he's peed a lot upstairs in both my room and the area outside of my room. is he peeing in these places because he's not completely potty trained or because he still smells the pee?