James couldn't get comfortable.  There was too much dirt.  He needed to clean out what?
bed street subway
bed
a bed is where you need to be comfortable to sleep.  unless he was sleeping in a street or subway, then bed is the best choice.
couldn't get comfortable