added stripWhite function