Java: Got rid of exceptions and instead using return string
PhP: Minor function name improvement