More robust interface finding that allows spaces at beginning of line