clear strings without using removed clearString() library function