added special char checks, removed extra new line