You're appending tabs here, on the next line (which should be empty) and on the `str_pad()` line - remove them. :)