Trim test credentials and URL input strings.