1.Trim whitspace- ensure numStr doesn't contain any leading space 2. Handle Errors- add exception handling to catch invalid strings