ignoring other characters when space expected