Remove nulls from input