String builder replaced by interpolated string
Replace do-while with while intention added