Avoid empty-like values in alignment parsing

The parsing may result in values like '\n' that we
do not want to take into account.