protect against space in input line

although space should not be there anyway