Tidied up some brackets which should be []

Made square brackets and changed types for function only (string was from the days when we didnt have an object to configure).