ignore blank string
Refactoring.