dealing with unknown input and double or leading spaces.