Implement a method to validate whether a given string of brackets representing API payloads is properly nested.