Strip the line to filter lines composed of only whitespaces

Fix #9395