Cleaned string function because I was bored.