Don't change title in set state if string is whitespace