add remove_chars2 enhancement by decreasing two for loops and runtime