direction char, check number of values to be only 1

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>