Replaced tab with spaces, check for NSNotFound