Implement string character remover function