void remove(long start) and void remove(long start, long end)

use: remove(long)
remove all characters from start till the end for valid index.
remove(long, long)
remove all characters from start index to index end (both inclusive) for
valid index.