add variable strSplit length
edit consecutive 'if' statements