Fixed deprecated move_iter(), and trim_chars()