handles brakets spaces and floating numbers.