Patch fix #1

Removed unnecessary variables YesNoBool and itemStringLength.
Replaced While with do... while.
Removed whitespace.