changed auto_align to use python string functions instead of  regex. much cleaner