Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given a string s consisting of only the characters 'a' and 'b', return true if every 'a' appears before every 'b' in the string. Otherwise, return false.
 
Please complete the following python code precisely:
```python
class Solution:
    def checkString(self, s: str) -> bool:
```