new functions and tests added

check for repeating chars