removing whitespace
weeding out incomplete cases