minor changes and fixed stringCharRemove