I'm looking for a way to seperate brackets and numbers from other characters i.e. if a bracket (externally only) or a number is in an immediate neighbourhood of non bracket or number character a space should be inserted between them like in the following strings: