drop extra states in regex