changed toString formatting
input text now only contains alphanumeric characters and space
changed toString formatting and type strings