Long hard-coded strings in a codebase can be a sign of poor architecture.
To make hard-coded strings easier to find, consider highlighting them in your IDE.
Figure: Better Example - The connection string is still hard-coded, but at least it's very visible to the developers.