Remove none directional characters from the string