Remove direction from string