`text` already exists from the function parameter, could you choose another name so that it's clearer ? (or another name for the argument if you wish)