public StringGrabber removeHeadConsecutiveChars ( char charToRemove ) { boolean loop = true ; if ( sb . length ( ) > 0 ) { while ( loop ) { if ( sb . charAt ( 0 ) == charToRemove ) { removeHead ( 1 ) ; } else { loop = false ; } } } return StringGrabber . this ; }
remove consecutive chars placed at the head