Check commands is F,L or R and make strings case insensitive
filter for commands case insensitive